import request from '@/utils/request';

export function accountLogin(params) {
  return request({
    url: 'api-token-auth/',
    method: 'post',
    data: params,
  });
}

export function register(params) {
  return request({
    url: 'users/',
    method: 'post',
    data: params,
  })
}

export function getCaptcha(data, params) {
  return request({
    url: 'code/',
    method: 'post',
    data,
    params,
  });
}
